const storage = {

    set(key, value) {

        sessionStorage.setItem(key, JSON.stringify(value));

    },

    get(key) {

        return JSON.parse(sessionStorage.getItem(key));

    },
    remove(key) {
        sessionStorage.removeItem(key);
    }
}
//暴露给外部访问
export default storage
